package chapter1014;

import chapter1014.hero.Hero;
import chapter1014.item.Item;

public class TestHero {
    public static void main(String[] args) {
        Hero hero1 = new Hero();
//        hero1.name = "提莫";
//        hero1.armor = 14;
//        hero1.moveSpeed = 330;
//        hero1.hp = 600;

        Hero hero2 = new Hero();
//        hero2.name = "盖伦";
//        hero2.armor = 14;
//        hero2.moveSpeed = 330;
//        hero2.hp = 600;

        System.out.println(hero1.toString());
        System.out.println(hero1);

        Item sword = new Item("长剑",350);
        hero1.buy(sword);

        Item bloodBag = new Item("BloodBag",50);
        hero2.buy(bloodBag);
    }
}
